﻿using ProjectShare;
using System;
using System.Collections.Generic;

namespace OMG.Fill.Frunit.Model
{
    /// <summary>
    /// 表4外销调查表T_FruExport查询条件
    /// </summary>
    public class FruExportQuery : SearchBase
    {
        //查询条件，请自行删除不需要条件
        /// <summary>
        /// 编号
        /// </summary>
        public string Id{ get;set;}
        /// <summary>
        /// 报表编号
        /// </summary>
        public string ReportId{ get;set;}
        /// <summary>
        /// 生产总量
        /// </summary>
        public decimal? ProductNumber{ get;set;}
        /// <summary>
        /// 外销量
        /// </summary>
        public decimal? SaleNumber{ get;set;}
        /// <summary>
        /// 生产总额
        /// </summary>
        public decimal? ProductMoney{ get;set;}
        /// <summary>
        /// 外销额
        /// </summary>
        public decimal? SaleMoney{ get;set;}
        /// <summary>
        /// 新增人
        /// </summary>
        public string AddUser{ get;set;}
        /// <summary>
        /// 新增时间
        /// </summary>
        public DateTime? AddTime{ get;set;}
        /// <summary>
        /// 修改人
        /// </summary>
        public string UpdateUser{ get;set;}
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime{ get;set;}
        /// <summary>
        /// 外销量比上年增减%
        /// </summary>
        public decimal? pecSaleNumber { get; set; }
        /// <summary>
        /// 外销额比上年增减%
        /// </summary>
        public decimal? pecSaleMoney { get; set; }
    }
    public class FruExportViewModel
    {
        /// <summary>
        /// 编号
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 报表编号
        /// </summary>
        public string ReportId { get; set; }
        /// <summary>
        /// 生产总量
        /// </summary>
        public decimal? ProductNumber { get; set; }
        /// <summary>
        /// 外销量
        /// </summary>
        public decimal? SaleNumber { get; set; }
        /// <summary>
        /// 生产总额
        /// </summary>
        public decimal? ProductMoney { get; set; }
        /// <summary>
        /// 外销额
        /// </summary>
        public decimal? SaleMoney { get; set; }
        /// <summary>
        /// 新增人
        /// </summary>
        public string AddUser { get; set; }
        /// <summary>
        /// 新增时间
        /// </summary>
        public DateTime? AddTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string UpdateUser { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 报表状态
        /// </summary>
        public string ReportStatus { get; set; }
        /// <summary>
        /// 外销量比上年增减%
        /// </summary>
        public decimal? pecSaleNumber { get; set; }
        /// <summary>
        /// 外销额比上年增减%
        /// </summary>
        public decimal? pecSaleMoney { get; set; }
        /// <summary>
        /// 编号
        /// </summary>
        public string OldId { get; set; }
        /// <summary>
        /// 报表编号
        /// </summary>
        public string OldReportId { get; set; }
        /// <summary>
        /// 生产总量
        /// </summary>
        public decimal? OldProductNumber { get; set; }
        /// <summary>
        /// 外销量
        /// </summary>
        public decimal? OldSaleNumber { get; set; }
        /// <summary>
        /// 生产总额
        /// </summary>
        public decimal? OldProductMoney { get; set; }
        /// <summary>
        /// 外销额
        /// </summary>
        public decimal? OldSaleMoney { get; set; }
        /// <summary>
        /// 新增人
        /// </summary>
        public string OldAddUser { get; set; }
        /// <summary>
        /// 新增时间
        /// </summary>
        public DateTime? OldAddTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string OldUpdateUser { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? OldUpdateTime { get; set; }
        /// <summary>
        /// 上一年报表状态
        /// </summary>
        public string OldReportStatus { get; set; }
        /// <summary>
        /// 未通过原因
        /// </summary>
        public string Opinion { get; set; }
    }

    public class FruExportModel
    {
        public string year { get; set; }
        /// <summary>
        /// 编号
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 报表编号
        /// </summary>
        public string ReportId { get; set; }
        /// <summary>
        /// 生产总量
        /// </summary>
        public decimal? ProductNumber { get; set; }
        /// <summary>
        /// 外销量
        /// </summary>
        public decimal? SaleNumber { get; set; }
        /// <summary>
        /// 生产总额
        /// </summary>
        public decimal? ProductMoney { get; set; }
        /// <summary>
        /// 外销额
        /// </summary>
        public decimal? SaleMoney { get; set; }
        /// <summary>
        /// 新增人
        /// </summary>
        public string AddUser { get; set; }
        /// <summary>
        /// 新增时间
        /// </summary>
        public DateTime? AddTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string UpdateUser { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 外销量比上年增减%
        /// </summary>
        public decimal? pecSaleNumber { get; set; }
        /// <summary>
        /// 外销额比上年增减%
        /// </summary>
        public decimal? pecSaleMoney { get; set; }
    }

    public class FruExportStatisModel
    {
        /// <summary>
        /// 地区名称
        /// </summary>
        public string AreaName { get; set; }
        /// <summary>
        /// 地区编号
        /// </summary>
        public string AreaCode { get; set; }
        /// <summary>
        /// 生产总量
        /// </summary>
        public decimal? ProductNumber { get; set; }
        /// <summary>
        /// 外销量
        /// </summary>
        public decimal? SaleNumber { get; set; }
        /// <summary>
        /// 外销量比上年增减
        /// </summary>
        public decimal? pecSaleNumber { get; set; }
        /// <summary>
        /// 生产总额
        /// </summary>
        public decimal? ProductMoney { get; set; }
        /// <summary>
        /// 外销额
        /// </summary>
        public decimal? SaleMoney { get; set; }
        /// <summary>
        /// 外销额比上年增减
        /// </summary>
        public decimal? pecSaleMoney { get; set; }
        /// <summary>
        /// 标记，县级为0，州市级为1，省级为2
        /// </summary>
        public int tag { get; set; }
    }
    
}
